import request from '@/utils/request'

// 查询识别码详情列表
export function listDetalis(query) {
  return request({
    url: '/system/detalis/list',
    method: 'get',
    params: query
  })
}

export function listActivatedList(query) {
  return request({
    url: '/system/codeid/activatedList',
    method: 'get',
    params: query
  })
}

// 查询识别码详情详细
export function getDetalis(id) {
  return request({
    url: '/system/detalis/' + id,
    method: 'get'
  })
}
export function getOrderAddress(id) {
  return request({
    url: '/system/detalis/' + id,
    method: 'get'
  })
}
export function changeOrderAddress(data) {
  return request({
    url: '/system/detalis/updateAddress',
    method: 'post',
    data
  })
}



// 新增识别码详情
export function addDetalis(data) {
  return request({
    url: '/system/detalis',
    method: 'post',
    data: data
  })
}

// 修改识别码详情
export function updateDetalis(data) {
  return request({
    url: '/system/detalis',
    method: 'put',
    data: data
  })
}

// 删除识别码详情
export function delDetalis(id) {
  return request({
    url: '/system/detalis/' + id,
    method: 'delete'
  })
}
